æòÅⁿâoâiü[

FileSystem rename() Method


    File(path).rename(string)
    Folder(path).rename(string)

Description

    The rename() method of File or Folder renames the object to a new name. The new name must not have a path. This method returns true if the object was renamed. The method does not resolve aliases, but rather renames the alias file.

Parameters

    string

    the new name for the object.

Returns

    Boolean.